package com.lanchetech.common.enums;

import lombok.Getter;

@Getter
public enum BossLevelEnum {
    NOT_BOSS(0, "游客"),

    BOSS_L1(1, "老板"),
    BOSS_L2(2, "优选官"),
    BOSS_L3(3, "品质官"),
    BOSS_L4(4, "首席官"),

    ;
    private Integer level;
    private String remark;

    BossLevelEnum(Integer level, String remark) {
        this.level = level;
        this.remark = remark;
    }

    public static BossLevelEnum getByLevel(Integer level) {
        for (BossLevelEnum item : BossLevelEnum.values()) {
            if (item.getLevel().equals(level)) {
                return item;
            }
        }
        return null;
    }
}
